package com.Test;

import com.meth.method;

import java.util.Scanner;

/**
 * 自定义添加测试用户类
 */


public class AddTestUser {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String  CardId=null;
        int Password;
        //添加用户
        while(true){
            System.out.print("添加用户,输入卡号");
            CardId= sc.nextLine();
            System.out.print("输入密码");
            Password = sc.nextInt();
            //消耗换行符
            sc.nextLine();
            if (method.InsertUser(CardId,Password)){
                System.out.println("添加自定义测试用户成功");
                break;
            }

        }
    }
}
